package com.gk.study.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.gk.study.entity.Homework;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
import java.util.Map;

public interface HomeworkService extends IService<Homework> {
    List<Homework> getHomeworkByTeacher(Long teacherId);
    void publishHomework(Homework homework, MultipartFile file) throws Exception;
    void submitHomework(Long homeworkId, String answer, MultipartFile file) throws Exception;
    void correctHomework(Long homeworkId, Double score);

    List<Homework> getPublishedHomeworkWithCourse(Long teacherId);
    List<Homework> getHomeworkByStudentAndStatus(Long studentId, Integer status);

    List<Homework> getStudentScores(Long studentId, String courseTitle);
    List<String> getStudentCoursesWithScores(Long studentId);

    List<Long> getTeachingStudents(String teacherUserId);
    Map<String, List<Map<String, Object>>> getTeachingAnalysisData(String teacherUserId, Long studentId);
}